home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / shistory / nsISHContainer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  152 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISHContainer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISHContainer_h__
  6. #define __gen_nsISHContainer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIEnumerator_h__
  14. #include "nsIEnumerator.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsISHEntry_h__
  18. #include "nsISHEntry.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsISHContainer */
  27. #define NS_ISHCONTAINER_IID_STR "65281ba2-988a-11d3-bdc7-0050040a9b44"
  28.  
  29. #define NS_ISHCONTAINER_IID \
  30.   {0x65281ba2, 0x988a, 0x11d3, \
  31.     { 0xbd, 0xc7, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }}
  32.  
  33. /**
  34.  * The nsISHEntryContainer. The interface to access child entries
  35.  * of an nsISHEntry.
  36.  * 
  37.  */
  38. class NS_NO_VTABLE nsISHContainer : public nsISupports {
  39.  public: 
  40.  
  41.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISHCONTAINER_IID)
  42.  
  43.   /**
  44.      * The current number of nsISHEntries which are immediate children of the 
  45.      * current SHEntry
  46.      */
  47.   /* readonly attribute long childCount; */
  48.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) = 0;
  49.  
  50.   /**
  51.      * Add a new child SHEntry.  Adds to the end of the list.
  52.      */
  53.   /* void AddChild (in nsISHEntry child, in long offset); */
  54.   NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) = 0;
  55.  
  56.   /**
  57.      * Removes a child SHEntry
  58.      */
  59.   /* void RemoveChild (in nsISHEntry child); */
  60.   NS_IMETHOD RemoveChild(nsISHEntry *child) = 0;
  61.  
  62.   /**
  63.      * Get child at an index
  64.      */
  65.   /* nsISHEntry GetChildAt (in long index); */
  66.   NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry **_retval) = 0;
  67.  
  68. };
  69.  
  70. /* Use this macro when declaring classes that implement this interface. */
  71. #define NS_DECL_NSISHCONTAINER \
  72.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount); \
  73.   NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset); \
  74.   NS_IMETHOD RemoveChild(nsISHEntry *child); \
  75.   NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry **_retval); 
  76.  
  77. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  78. #define NS_FORWARD_NSISHCONTAINER(_to) \
  79.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return _to GetChildCount(aChildCount); } \
  80.   NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) { return _to AddChild(child, offset); } \
  81.   NS_IMETHOD RemoveChild(nsISHEntry *child) { return _to RemoveChild(child); } \
  82.   NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry **_retval) { return _to GetChildAt(index, _retval); } 
  83.  
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  85. #define NS_FORWARD_SAFE_NSISHCONTAINER(_to) \
  86.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
  87.   NS_IMETHOD AddChild(nsISHEntry *child, PRInt32 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child, offset); } \
  88.   NS_IMETHOD RemoveChild(nsISHEntry *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(child); } \
  89.   NS_IMETHOD GetChildAt(PRInt32 index, nsISHEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(index, _retval); } 
  90.  
  91. #if 0
  92. /* Use the code below as a template for the implementation class for this interface. */
  93.  
  94. /* Header file */
  95. class nsSHContainer : public nsISHContainer
  96. {
  97. public:
  98.   NS_DECL_ISUPPORTS
  99.   NS_DECL_NSISHCONTAINER
  100.  
  101.   nsSHContainer();
  102.  
  103. private:
  104.   ~nsSHContainer();
  105.  
  106. protected:
  107.   /* additional members */
  108. };
  109.  
  110. /* Implementation file */
  111. NS_IMPL_ISUPPORTS1(nsSHContainer, nsISHContainer)
  112.  
  113. nsSHContainer::nsSHContainer()
  114. {
  115.   /* member initializers and constructor code */
  116. }
  117.  
  118. nsSHContainer::~nsSHContainer()
  119. {
  120.   /* destructor code */
  121. }
  122.  
  123. /* readonly attribute long childCount; */
  124. NS_IMETHODIMP nsSHContainer::GetChildCount(PRInt32 *aChildCount)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* void AddChild (in nsISHEntry child, in long offset); */
  130. NS_IMETHODIMP nsSHContainer::AddChild(nsISHEntry *child, PRInt32 offset)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* void RemoveChild (in nsISHEntry child); */
  136. NS_IMETHODIMP nsSHContainer::RemoveChild(nsISHEntry *child)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* nsISHEntry GetChildAt (in long index); */
  142. NS_IMETHODIMP nsSHContainer::GetChildAt(PRInt32 index, nsISHEntry **_retval)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* End of implementation class template. */
  148. #endif
  149.  
  150.  
  151. #endif /* __gen_nsISHContainer_h__ */
  152.